home *** CD-ROM | disk | FTP | other *** search
- Jimmy's topic
- ======= =====
-
-
- You know what a computer REALLY is?
-
- It's just a fancy bit fiddler, keeping
-
- track of thousands of 'yeses' and
-
- 'nos' and displaying them in a way
-
- you can understand.
-
- You know how it keeps track of all
-
- those yeses and nos? It puts each one
-
- in a flip-flop. (Or a memory location
-
- -- a bit different, but it serves
-
- about the same purpose.)
-
-
- These days, the only kind of flip-
-
- flop most people care about is the
-
- master-slave J-K flip-flop. Some
-
- diehards are still using the R-S
-
- flip-flop. Almost nobody uses the
-
- old-fashioned cross-coupled and/or/
-
- inverter configuration any more.
-
- A J-K flip-flop is actually two
-
- flip-flops tied to each other.
-
- The second is the slave of the first.
-
- There are reset and set lines.
-
- This is the truth table for a
-
- J-K flip flop:
-
- {CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}{CBM-C}
- input J K Reset Set{CBM-N} output Q Q'
- {CBM-N}
- 0 0 0 0 {CBM-N} ? ?'
- 0 1 0 0 {CBM-N} 0 1
- 1 0 0 0 {CBM-N} 1 0
- 1 1 0 0 {CBM-N} Q' Q''
- x x 1 0 {CBM-N} 0 1
- x x 0 1 {CBM-N} 1 0
- {CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}{CBM-D}
-
- As you can see, if both J & K inputs
-
- are 0, the outputs are unpredictable,
-
- but will not change from their
-
- previous state.
-
- If K alone is 1, the flip flop will
-
- be reset (the primary output will be
-
- zero).
-
- If J alone is 1, the flip flop will
-
- be set (the primary output equals 1).
-
- If both J and K are 1, the outputs
-
- toggle, each becoming what the other
-
- output was.
-
- If the direct set input is 1, the
-
- flip flop is set to 1.
-
- If the direct reset input is 1, the
-
- flip flop is reset to 0.
-
-
- The Q output of a flip-flop is
-
- ALWAYS the opposite of the Q' output,
-
- and vice versa.
-
-
- -----
-
- What makes flip-flops useful is
-
- their ability to store information
-
- on the outputs independent of the
-
- present state of the inputs. They
-
- can do this because they are
-
- triggered devices... nothing happens
-
- until a clock pulse comes along.
-
- Sorry, my mind just became boggled.
-
- I better stop.....
-
- Jimmy W.
-
- --------------------------------------
-